import { createRouter, createWebHistory } from 'vue-router';
import {
  childrenRoute
} from './childrenRoute.js';
const routes = [
  {
    path: '/',
    name: 'Home',
    // component: Home
    component: () => import(/* webpackChunkName: "Home" */ '../views/Home.vue'),
    children: childrenRoute

  },

]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router

